import { Alova } from '@/utils/http/alova/index';

//获取table
export function getNode(params: any) {
  return Alova.Post('/admin/node', params);
}

export function putNode(params: any) {
  return Alova.Put('/admin/node', params);
}

export function patchNode(params: any) {
  return Alova.Patch('/admin/node', params);
}

export function getNodeInfo(id: number) {
  return Alova.Get('/admin/node/' + id);
}

export function deleteNode(id: number) {
  return Alova.Delete('/admin/node/' + id);
}
